package amit.calc.form;

public class CalcRowObj {

	private double balance, principal, interest, total, cashFlow;
	private int num;
	
	public CalcRowObj(int num, double balance, double principal, double interest,
			double total, double cashFlow) {
		super();
		this.num = num;
		this.balance = balance;
		this.principal = principal;
		this.interest = interest;
		this.total = total;
		this.cashFlow = cashFlow;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public double getCashFlow() {
		return cashFlow;
	}

	public void setCashFlow(double cashFlow) {
		this.cashFlow = cashFlow;
	}

	public double getInterest() {
		return interest;
	}

	public void setInterest(double interest) {
		this.interest = interest;
	}

	public double getPrincipal() {
		return principal;
	}

	public void setPrincipal(double principal) {
		this.principal = principal;
	}

	public double getTotal() {
		return total;
	}

	public void setTotal(double total) {
		this.total = total;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String toString() {
		return num + ") "+ balance + ", " + principal + ", " + interest + ", " + total
				+ ", " + cashFlow;
	}

}
